package org.lex.depends.core.resource;

import java.io.IOException;
import java.io.InputStream;

import org.apache.commons.io.IOUtils;

public abstract class AbstractResource implements IResource {
	@Override
	public byte[] getContent() throws IOException {
		InputStream is = this.getInputStream();
		byte[] con = IOUtils.toByteArray(is);
		is.close();
		return con;
	}
}
